package cn.zhangxiaoyu;

	import java.util.LinkedList;

	public class ExampleTest29 {
		public static void main(String[] args) {
			LinkedList linkedList =new LinkedList();
			linkedList.add("name1");
			linkedList.add("name2");
			linkedList.add("name3");
			linkedList.add("name4");
			System.out.println(linkedList.toString());
			linkedList.add(3,"name5");
			linkedList.addFirst("name0");
			System.out.println(linkedList);
			System.out.println(linkedList.get(1));
			linkedList.remove(4);
			linkedList.removeFirst();
			System.out.println(linkedList.toString());
			System.out.println(linkedList.size());
		}
	}